package com.meritit.product.spi;

import com.sun.portal.container.ChannelURL;
import com.sun.portal.container.ChannelURLFactory;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ChannelURLFactoryImpl implements ChannelURLFactory {

    @Override
    public ChannelURL createChannelURL() {
       ChannelURL channelURL = new ChannelURLImpl();
        return channelURL;
    }

    @Override
    public String encodeURL(HttpServletRequest request, HttpServletResponse response, String url) {
        return response.encodeURL(url);
    }

    @Override
    public String getRenderTemplate() {
        throw new UnsupportedOperationException();
    }

    @Override
    public String getActionTemplate() {
        throw new UnsupportedOperationException();
    }

    @Override
    public String getResourceTemplate() {
        throw new UnsupportedOperationException();
    }

    @Override
    public String getSecurityErrorURL() {
        throw new UnsupportedOperationException();
    }
}
